package com.hao.crm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hao.crm.domain.Department;
import com.hao.crm.mapper.DepartmentMapper;
import com.hao.crm.page.PageResult;
import com.hao.crm.query.QueryObject;
import com.hao.crm.service.IDepartmentService;
@Service
public class DepartmentServiceImpl implements IDepartmentService{
	@Autowired
	private DepartmentMapper dao;
	@Override
	public int delete(Long id) {
		return dao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Department d) {
		return dao.insert(d);
	}

	@Override
	public Department get(Long id) {
		return dao.selectByPrimaryKey(id);
	}

	@Override
	public List<Department> selectAll() {
		return dao.selectAll();
	}

	@Override
	public int update(Department e) {
		return 0;
	}

	@Override
	public PageResult selectByCondition(QueryObject qo) {
		return null;
	}

}
